Interface ServicePolicyManager

All Superinterfaces:
IPCObject
All Known Implementing Classes:
ServicePolicyManagerImpl

public interface ServicePolicyManager extends IPCObject
Information provided by the PKI file:

    \class CServicePolicyManager
    
    \brief CServicePolicyManager stores and retrieves service-policy for traffic inspection
    
    \example network().getDevice("Router0").getServicePolicyManager()
    
Author:
Auto-generated
  • Method Details

    • deleteServicePolicy

      void deleteServicePolicy(String policyMapName, String intfName)
      Information provided by the PKI file:
      
          \brief Delete the service policy that matches policy-map and interface name
          
              
      Parameters:
      policyMapName - Takes in a parameter of policyMapName
      intfName - Takes in a parameter of intfName
    • getServicePolicy

      ServicePolicy getServicePolicy(String policyName, String mode, String intf)
      Information provided by the PKI file:
      
          \brief Returns the service-policy that matches policy-map name, mode("interface"/"global") and interface nameIf
          
              
      Parameters:
      policyName - Takes in a parameter of policyName
      mode - Takes in a parameter of mode
      intf - Takes in a parameter of intf
      Returns:
      ServicePolicy Returns a ServicePolicy
    • getGlobalServicePolicy

      ServicePolicy getGlobalServicePolicy()
      Information provided by the PKI file:
      
          \brief Returns the global service-policy
          
              
      Returns:
      ServicePolicy Returns a ServicePolicy
    • getIntfServicePolicy

      ServicePolicy getIntfServicePolicy(String intfName)
      Information provided by the PKI file:
      
          \brief Returns the interface service-policy that matches the interface nameIf
          
              
      Parameters:
      intfName - Takes in a parameter of intfName
      Returns:
      ServicePolicy Returns a ServicePolicy
    • getServicePolicyAt

      ServicePolicy getServicePolicyAt(int index)
      Information provided by the PKI file:
      
          \brief Returns the service-policy at a specified index
          
              
      Parameters:
      index - Takes in a parameter of index
      Returns:
      ServicePolicy Returns a ServicePolicy
    • getServicePolicyCount

      int getServicePolicyCount()
      Information provided by the PKI file:
      
          \brief Returns the number of service-policy has been configured
          
              
      Returns:
      int Returns a int